package com.cqie.teacherserver.controller;


import com.cqie.campuscommon.result.Result;
import com.cqie.teacherserver.service.ITeacherBaseInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 教师基本信息 前端控制器
 * </p>
 *
 * @author zhangr132
 * @since 2024-05-31
 */
@Slf4j
@Api(tags = "教师基本信息管理")
@RestController
public class TeacherBaseInfoController {
    @Autowired
    private ITeacherBaseInfoService teacherBaseInfoService;

    @ApiOperation(value = "教师基本信息获取")
    @RequestMapping("/getTeacherbaseInfo")
    public Result getTeacherBaseInfo(String teacherCode) {
        log.info("----------正在获取教师基本信息----------");
        Result result = teacherBaseInfoService.getTeacherBaseInfo(teacherCode);
        log.info("----------处理教师基本信息获取请求结束----------");
        return result;
    }


}
